added Feb 2001 SDK
[windows-sources.git] / shared source / wpf / src / host / shimimpl / persistmoniker.hxx
blob84ac522718c54131fb54a2180594b159da8f4c0a
1 //+-----------------------------------------------------------------------
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // Description:
6 // Defines the PersistMoniker class of PresentationHost.
7 //
8 // History:
9 // 2002/06/19-murrayw
10 // Created
11 // 2007/09/20-[....]
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
13 // 2007/09/20-[....]
14 // Ported Windows->DevDiv. See SourcesHistory.txt.
16 //------------------------------------------------------------------------
18 #pragma once
20 //******************************************************************************
22 // CPersistStorage class definition
24 //******************************************************************************
26 class CPersistMoniker : public IPersistMoniker
28 public:
29 CPersistMoniker(__in CHostShim*);
30 ~CPersistMoniker();
32 //IUnknown methods
33 STDMETHODIMP QueryInterface(REFIID, __out LPVOID*);
34 STDMETHODIMP_(DWORD) AddRef();
35 STDMETHODIMP_(DWORD) Release();
37 //IPersistMoniker methods
38 STDMETHODIMP GetClassID(__out LPCLSID);
39 STDMETHODIMP GetCurMoniker(LPMONIKER*);
40 STDMETHODIMP Save(LPMONIKER, LPBC, BOOL);
41 STDMETHODIMP SaveCompleted(LPMONIKER, LPBC);
43 STDMETHODIMP Load(BOOL fFullyAvailable,
44 __in LPMONIKER pMoniker,
45 __in LPBC pbc,
46 DWORD dwReserved);
48 STDMETHODIMP IsDirty();
50 private:
51 CHostShim *m_pHostShim;